package com.frejoys.common.dto.app;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class AddUserAddressDto {

    @NotBlank(message = "{600}")
    @Schema(type = "String", name = "name", description = "收货人姓名", required = true, defaultValue = "小明")
    private String name;

    @NotBlank(message = "{600}")
    @Schema(type = "String", name = "phone", description = "联系电话", required = true, defaultValue = "15586868686")
    private String phone;

    // @NotNull(message = "{600}")
    // @Schema(type = "String", name = "province", description = "省", required = true, defaultValue = "四川省")
    // private String province;
    //
    // @NotNull(message = "{600}")
    // @Schema(type = "String", name = "city", description = "市", required = true, defaultValue = "成都市")
    // private String city;

    @NotBlank(message = "{600}")
    @Schema(type = "String", name = "district", description = "区县", required = true, defaultValue = "410300")
    private String district;

     @Schema(type = "String", name = "street", description = "街道地址", required = true, defaultValue = "xxxx沿街")
     private String street;

    @Schema(type = "String", name = "address", description = "详细地址", required = true, defaultValue = "xxxx小区505")
    private String address;

}
